* {
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 顶部导航栏 */
.header {
    background: #c7bdbd00;
    padding: 10px 20px;
    z-index: 1000;
    position: relative
}

.nav {
    display: flex;
    align-items: center;

}

.nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.search-box {
    flex: 1;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 20px;
}

.user-ops a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

/* 横幅部分 */
.banner {
    position: relative;
    height: 400px;
}

.banner-content {
    width: 100%;
    position: absolute;
    top: 50%;

    transform: translateY(-50%);
    color: white;
}

.banner-content img {
    z-index: 1;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
}



/* 推荐卡片 */
.recommend {
    margin: 0 auto;
    width: 85%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 20px;
    z-index: 1000;
    position: relative
}

.card {
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.card img {

    width: 100%;
    height: auto;
}

/* 分类区域 */
.categories {
    display: flex;
    gap: 20px;
    padding: 0 100px;
    margin: 0 auto;

}

.category {
    margin: 0 auto;
    width: 20%;
    padding: 20px;
    border-radius: 10px;
}

.category h3 {
    margin-bottom: 10px;
}

/*新番推荐*/

.time {
    background: #f8f9fa;
    padding: 15px 20px;
}

.new {

    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.main-container {
    justify-content: center;
    /* 子元素水平居中 */
    align-items: center;
    /* 若需垂直居中，可添加此属性 */
    text-align: center;
    display: flex;
    padding: 30px;
    /* 新增 */
}

.time-anime-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px
}

.time-item {
    background: #ffebf4;
    color: #333;
    padding: 5px 15px;
    margin-bottom: 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.anime-item {
    text-align: center;
    position: relative;
    /* 新增定位参考 */
}

.anime-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.score {
    position: absolute;
    top: 10px;
    /* 调整为顶部定位 */
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.anime-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.update-info {
    font-size: 12px;
    color: #666;
}

.tit {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

/* 番剧热播榜 */
.hot-list {
    display: flex;
    gap: 20px;
    padding: 40px 100px;
}

.hot-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.item-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.title {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* 大块模块 */

.first {
    display: flex;
    padding: 20px;
    width: 85%;
    margin: 0 auto;
}

.second {
    flex: 2;
    position: relative;
    background: #c22b2b;

}

.third {

    flex: 1;
    padding: 20px;
    background: #c22b2b;
    color: white;
}

.fourth {
    margin-top: 50px;
    font-size: 24px;
    margin-bottom: 10px;
}

.fifth {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sixth {
    font-size: 24px;
    margin-right: 10px;
}

.seventh {
    color: gold;
}

.eighth {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ninth {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tenth,
.tenth_a {
    padding: 8px 15px;
    background: white;
    color: #c22b2b;
    text-decoration: none;
    border-radius: 4px;
}

/* 下面卡片 */
.anime-grid {
    margin: 0 auto;
    width: 1300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 50px;
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: auto;
}

.anime-info {
    padding: 10px;
    text-align: center;
}

.anime-title {
    font-size: 16px;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.anime-score {
    font-size: 14px;
    color: #ff4500;
}


.bilibili-style-footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    margin-right: 40px;
    min-width: 200px;
}

.footer-column h4 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
}

.footer-column a:hover {
    color: #00a1d6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.copyright {
    margin: 0;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #ddd;
    border-radius: 5px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links i {
    color: #666;
    font-size: 18px;
}

.xuanfuchuang {
    position: relative;
    /* 添加相对定位，作为绝对定位的参考 */
}

.xuanfuchuang:hover .tupian {
    display: block;
    left: -50px;
    /* opacity: 1; */
}

.tupian {
    float: left;
    width: 300px;
    position: absolute;
    display: none;
    /* opacity: 0; */
    top: 40px;
    /* 调整位置，避免遮挡主链接 */
    left: 0;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    /* 圆角半径，值越大圆角越明显 */
}

.right-section {
    display: block;
}

.xuanfuchuang1 {
    position: relative;
    /* 添加相对定位，作为绝对定位的参考 */
}